package com.chuangfeng.building.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * TMsRoleMenu entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "t_ms_role_menu")
public class TMsRoleMenu implements java.io.Serializable {

	// Fields

	private Long relationId;
	private Integer msRoleId;
	private Integer msMenuId;

	// Constructors

	/** default constructor */
	public TMsRoleMenu() {
	}

	/** full constructor */
	public TMsRoleMenu(Integer msRoleId, Integer msMenuId) {
		this.msRoleId = msRoleId;
		this.msMenuId = msMenuId;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "relationId", unique = true, nullable = false)
	public Long getRelationId() {
		return this.relationId;
	}

	public void setRelationId(Long relationId) {
		this.relationId = relationId;
	}

	@Column(name = "msRoleId", nullable = false)
	public Integer getMsRoleId() {
		return this.msRoleId;
	}

	public void setMsRoleId(Integer msRoleId) {
		this.msRoleId = msRoleId;
	}

	@Column(name = "msMenuId", nullable = false)
	public Integer getMsMenuId() {
		return this.msMenuId;
	}

	public void setMsMenuId(Integer msMenuId) {
		this.msMenuId = msMenuId;
	}

}